<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>身体健康管理</title>
<%@ include file="/common/meta.jsp" %>
<script src="${ctx}/fusioncharts.com/javascript/FusionCharts.js" type="text/javascript"></script> 
<script src="${ctx}/js/health/proposal.js" type="text/javascript"></script> 
<script type="text/javascript"> 
	$(document).ready(function(){
	    heightCharts();
	    weightCharts();
	    bmiCharts();
	    clinicCharts();
	    averageCharts();
	});
	
	function heightCharts(){
	    $.getJSON('health-proposal!heightCharts.action', function(json) {
	     	var myChart = new FusionCharts("${ctx}/fusioncharts.com/flash/MSLine.swf", "myChartId", "250", "150", "0", "0" );
			myChart.setDataXML(json);
		    myChart.render("height");  
	    }); 
	}
	
   function weightCharts(){
		$.getJSON('health-proposal!weightCharts.action', function(json) {
			 var myChart = new FusionCharts("${ctx}/fusioncharts.com/flash/MSLine.swf", "myChartId", "250", "150", "0", "0" );
			 myChart.setDataXML(json);
		     myChart.render("weight");  
	    }); 
	}
	
	function bmiCharts(){
		$.getJSON('health-proposal!bmiCharts.action', function(json) {
			 var myChart = new FusionCharts("${ctx}/fusioncharts.com/flash/MSLine.swf", "myChartId", "250", "150", "0", "0" );
			 myChart.setDataXML(json);
		     myChart.render("bmi");  
	    }); 
	}
	
	
	
	function clinicCharts(){
	$.getJSON('health-proposal!clinicCharts.action', function(json) {
		 var myChart = new FusionCharts("${ctx}/fusioncharts.com/flash/Pie3D.swf", "myChartId", "400", "300", "0", "0" );
		 myChart.setDataXML(json);
	     myChart.render("clinic");  
    }); 
    
	}
	function averageCharts(){	
	$.getJSON('health-proposal!averageCharts.action', function(json) {
			var myChart = new FusionCharts("${ctx}/fusioncharts.com/flash/MSCombiDY2D.swf", "myChartId", "250", "200", "0", "0" );
		    myChart.setDataXML(json);
		    myChart.render("average");  
	    }); 
	}



</script>

</head>
<body>
<table width="80%" align="center" class="noborder">
	<tr>
	    <td align="left" ><div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal">当前位置：健康管理--身体健康管理</div> </td>
	</tr>
</table>
<form action="health-proposal!execute.action">
<table width="100%" align="center"  class="noborder" >
		<tr>
			   <td width="25%" rowspan="2" valign="top">
				   <div>
						<fieldset style=" height:400px" title=""><legend title="" align="top">营养健康建议:</legend>
						    <p></p>
						    <s:iterator value="pageProposalList" >
								<li>${proposal}--${createDate}</li>
							</s:iterator>
			   			</fieldset>    
				  </div> 
			   </td>
			   <td width="25%" align="right"> <div id="height"></div></td>
			   <td width="25%" align="right"> <div id="weight"></div></td>
			   <td width="25%" align="center"><div id="bmi"></div></td>
		</tr>
		<tr>
			   <td  colspan="2" align="center"><div id="clinic"></div></td>
			   <td  align="center"><div id="average"></div></td>
		</tr>
</table>
</form>
</body>
</html>